net: phy: mv88e61xx: Fix uninitialized variable warning
authorTom Rini <[email protected]>
Tue, 9 May 2017 02:14:32 +0000 (22:14 -0400)
committerTom Rini <[email protected]>
Fri, 12 May 2017 12:37:30 +0000 (08:37 -0400)
commit4201223de8e6bac403213ad57769dfa723db36e3
tree44ef68f8ab3ccc5d9f9887ada10d9a23fd1c4b04
parent63c6f1ce3c243695efc1049591198136348ea9b7
net: phy: mv88e61xx: Fix uninitialized variable warning

The variable 'res' may be unused uninitialized if our call to
mv88e61xx_port_read (register read) fails and we goto the error
handling section.  In this case we set 'res' to -EIO to indicate why we
failed.

Cc: Joe Hershberger <[email protected]>
Cc: Chris Packham <[email protected]>
Cc: Kevin Smith <[email protected]>
Cc: Prafulla Wadaskar <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
drivers/net/phy/mv88e61xx.c